package cn.bzc.data.process.model.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;


@TableName("pm_bill")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PmBill {

    //主键id
    @TableId("billid")
    private Integer billid;

    //产权方id
    @TableField("orgid")
    private Integer orgid;

    //电站id
    @TableField("orderid")
    private Integer orderid;

    //来源类型（PmBillSourceType枚举）
    @TableField("sourcetype")
    private Integer sourcetype;

    //来源id
    @TableField("sourceid")
    private Integer sourceid;

    //来源单号
    @TableField("sourcecode")
    private String sourcecode;

    //账单金额
    @TableField("billcost")
    private BigDecimal billcost;

    //状态（PmBillStatus枚举）
    @TableField("status")
    private Integer status;

    //备注
    @TableField("remark")
    private String remark;
    //创建时间
    @TableField("createtime")
    private Date createtime;

    //创建人
    @TableField("createuserid")
    private Integer createuserid;
}

